
add_requires("boundscheck", {version = "1.1.16", configs = {shared = is_kind("shared")}})

target("c_utils")
	set_kind("$(kind)")
	set_languages("c++17")

	add_files("src/string_ex.cpp",
				"src/unicode_ex.cpp",
				"src/directory_ex.cpp",
				"src/datetime_ex.cpp",
				"src/refbase.cpp",
				"src/parcel.cpp",
				"src/semaphore_ex.cpp",
				"src/thread_pool.cpp",
				"src/file_ex.cpp",
				"src/mapped_file.cpp",
				"src/observer.cpp",
				"src/thread_ex.cpp",
				"src/io_event_handler.cpp",
				"src/io_event_reactor.cpp",
				"src/io_event_epoll.cpp",
				"src/event_handler.cpp",
				"src/event_reactor.cpp",
				"src/event_demultiplexer.cpp",
				"src/timer.cpp",
				"src/timer_event_handler.cpp",
				-- "src/ashmem.cpp",
				"src/rwlock.cpp")
	add_includedirs("include")
	add_headerfiles("include/*.h")
	add_packages("boundscheck")

